Skip to content

Desktop: no tray tooltip on macOS, it stayed on screen - #51

Merged
bl0rb merged 1 commit into
mainfrom
fix/tray-tooltip-macos
Nov 18, 2026
Merged

bl0rb merged 1 commit into
mainfrom
fix/tray-tooltip-macos

Conversation

@bl0rb

@bl0rb bl0rb commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Problem

On macOS the menu-bar tooltip "KeyZapper" sometimes stays on screen and never goes away.

Cause

tray-icon (0.25.1) covers the NSStatusBarButton with its own TrayTarget subview, which takes all mouse events. The tooltip, however, is set on the button underneath, so AppKit never sees the pointer leave it and the tooltip window lingers, especially after a click that opens the usage popover.

Fix

Set the tray tooltip (including the attention and disabled hints from tray::update) only on Windows/Linux. On macOS those hover hints are gone.

Checks

  • cargo check on macOS: no warnings
  • Windows target not checked locally

🤖 Generated with Claude Code

tray-icon covers the status-bar button with its own view that takes the
mouse events, so AppKit never sees the pointer leave the button and the
tooltip stays on screen. Windows and Linux keep the tooltip, including
the attention and disabled hints.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@bl0rb
bl0rb merged commit f93aff4 into main Nov 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant